using System.Windows.Forms;

namespace BLGenerator.BusinessLogic
{
    public abstract class ProjectSetting
    {
        public abstract string Name { get;}
        public abstract object DefaultValue { get;}

        public abstract Control GetControl();
        public abstract object GetSetting(Control control);
        public abstract void FillControl(Control control, object value);

        public virtual string GetStringFromValue(object value)
        {
            return value.ToString();
        }
    }
}